package com.css.zfzx.fwsjcj.modules.taskmanage.taskfrom.entity;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

@Entity
@Table(name = "fw_image_form", schema = "fwsjcj", catalog = "")
public class FwImageFormEntity {
    private String imageId;
    private String imageUrl;
    private String formId;
    private String createUserId;
    private Date createTime;

    @Id
    @Column(name = "image_id")
    public String getImageId() {
        return imageId;
    }

    public void setImageId(String imageId) {
        this.imageId = imageId;
    }

    @Basic
    @Column(name = "image_url")
    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    @Basic
    @Column(name = "form_id")
    public String getFormId() {
        return formId;
    }

    public void setFormId(String formId) {
        this.formId = formId;
    }

    @Basic
    @Column(name = "create_user_id")
    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FwImageFormEntity that = (FwImageFormEntity) o;
        return Objects.equals(imageId, that.imageId) &&
                Objects.equals(imageUrl, that.imageUrl) &&
                Objects.equals(formId, that.formId) &&
                Objects.equals(createUserId, that.createUserId) &&
                Objects.equals(createTime, that.createTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(imageId, imageUrl, formId, createUserId, createTime);
    }
}
